package com.springboot.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import com.springboot.model.po.Food;

@FeignClient(name = "food-server" , fallback = FoodFeignFallBack.class)
public interface FoodFeign {
	
	@GetMapping("/food/{foodId}")
	public ResponseEntity getFoodById(@PathVariable("foodId") int foodId) throws Exception;
	
}
